#pragma once
#include "TcpConnection.h"
#include "WebPageQuery.h"

//网页搜索类
class WebPageSearcher{
    using TcpConnectionPtr = shared_ptr<TcpConnection>;
public:
    WebPageSearcher(string &keys, const TcpConnectionPtr &conn, WebPageQuery &query);
    ~WebPageSearcher();
    void doQuery();
private:
    string &_sought;
    const TcpConnectionPtr &_conn;
    WebPageQuery &_query;
};

